import { controller, all, post, get } from "../decorator/router";
import crawler from "../crawler";
import { upload } from "../libs/qiniu";
@controller("/crawler")
export class Crawler {
  constructor() {}

  @get("/imdb")
  async getCharacters(ctx, next) {
    const res = await crawler.replaceData();
    // const res = qiniu.uptoken();
    
    // const res = await upload();
    // console.log(res);
    ctx.body = 1;
  }
}
